package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface MaterialService extends IService<WmMaterial> {
    /**
     * @param multipartFile 上传图片
     * @return
     */
    ResponseResult upload(MultipartFile multipartFile);

    PageResponseResult list(WmMaterialDto dto);
}
